/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author m10frr
 */
public class turniket1 {
    static int _count;
    public  turniket1(int count){
        _count=count;
    }
    public static void inerCount(){
        _count++;
    }
    public static int GetCount(){
        return _count;
    }
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        turniket1 turniket = new turniket1(0);
        /*turniket1 turniket2 = new turniket1(0);
        turniket1 turniket3 = new turniket1(0);
        turniket3 = turniket;*/
        for(int i=0;i<5;i++)
            turniket.inerCount();

        System.out.println(turniket.GetCount());
        //System.out.println(turniket2.GetCount());
    }
        // TODO code application logic here
    }


